package com.waves.design.adapter;

/**
 * 适配器类
 * 通过实现目标抽象类  并关联适配者类 使二者产生联系
 */
public class CarAdapter implements CarController {
    private final PoliceShine policeShine = new PoliceShine();
    private final PoliceSound policeSound = new PoliceSound();


    @Override
    public void sound() {
        policeSound.soundMethod();
    }

    @Override
    public void shine() {
        policeShine.shineMethod();
    }
}
